package light.head.framework.utils;
/**
 * @author 简航
 * 创建日期 2009-12-09 11:00:57
 */
public class PrintUtils {

	/**
	 * 根据格式打印对与错
	 * @param bo
	 * @param bt 1.√/×; 2.对/错; 3.true/false; 4.1/0
	 * @author 简航
	 * 创建日期 2009-12-09 11:02:14
	 */
	public static String printTrueOrFalse(Boolean bo, byte bt) {
		if (bo) {
			switch (bt) {
			case 1:
				return "√";
			case 2:
				return "对";
			case 3:
				return "true";
			case 4:
				return "1";

			default:
				return "√";
			}
		} else {
			switch (bt) {
			case 1:
				return "×";
			case 2:
				return "错";
			case 3:
				return "false";
			case 4:
				return "0";

			default:
				return "×";
			}
		}
	}
}
